package com.zhaogang.springtxdemo.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AccountTransactionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccountTransactionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("ac_tran.id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ac_tran.id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ac_tran.id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ac_tran.id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ac_tran.id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ac_tran.id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ac_tran.id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ac_tran.id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ac_tran.id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ac_tran.id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ac_tran.id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ac_tran.id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTransferNoIsNull() {
            addCriterion("ac_tran.transfer_no is null");
            return (Criteria) this;
        }

        public Criteria andTransferNoIsNotNull() {
            addCriterion("ac_tran.transfer_no is not null");
            return (Criteria) this;
        }

        public Criteria andTransferNoEqualTo(String value) {
            addCriterion("ac_tran.transfer_no =", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoNotEqualTo(String value) {
            addCriterion("ac_tran.transfer_no <>", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoGreaterThan(String value) {
            addCriterion("ac_tran.transfer_no >", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoGreaterThanOrEqualTo(String value) {
            addCriterion("ac_tran.transfer_no >=", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoLessThan(String value) {
            addCriterion("ac_tran.transfer_no <", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoLessThanOrEqualTo(String value) {
            addCriterion("ac_tran.transfer_no <=", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoLike(String value) {
            addCriterion("ac_tran.transfer_no like", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoNotLike(String value) {
            addCriterion("ac_tran.transfer_no not like", value, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoIn(List<String> values) {
            addCriterion("ac_tran.transfer_no in", values, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoNotIn(List<String> values) {
            addCriterion("ac_tran.transfer_no not in", values, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoBetween(String value1, String value2) {
            addCriterion("ac_tran.transfer_no between", value1, value2, "transferNo");
            return (Criteria) this;
        }

        public Criteria andTransferNoNotBetween(String value1, String value2) {
            addCriterion("ac_tran.transfer_no not between", value1, value2, "transferNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoIsNull() {
            addCriterion("ac_tran.from_account_no is null");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoIsNotNull() {
            addCriterion("ac_tran.from_account_no is not null");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoEqualTo(String value) {
            addCriterion("ac_tran.from_account_no =", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoNotEqualTo(String value) {
            addCriterion("ac_tran.from_account_no <>", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoGreaterThan(String value) {
            addCriterion("ac_tran.from_account_no >", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoGreaterThanOrEqualTo(String value) {
            addCriterion("ac_tran.from_account_no >=", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoLessThan(String value) {
            addCriterion("ac_tran.from_account_no <", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoLessThanOrEqualTo(String value) {
            addCriterion("ac_tran.from_account_no <=", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoLike(String value) {
            addCriterion("ac_tran.from_account_no like", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoNotLike(String value) {
            addCriterion("ac_tran.from_account_no not like", value, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoIn(List<String> values) {
            addCriterion("ac_tran.from_account_no in", values, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoNotIn(List<String> values) {
            addCriterion("ac_tran.from_account_no not in", values, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoBetween(String value1, String value2) {
            addCriterion("ac_tran.from_account_no between", value1, value2, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andFromAccountNoNotBetween(String value1, String value2) {
            addCriterion("ac_tran.from_account_no not between", value1, value2, "fromAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoIsNull() {
            addCriterion("ac_tran.to_account_no is null");
            return (Criteria) this;
        }

        public Criteria andToAccountNoIsNotNull() {
            addCriterion("ac_tran.to_account_no is not null");
            return (Criteria) this;
        }

        public Criteria andToAccountNoEqualTo(String value) {
            addCriterion("ac_tran.to_account_no =", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoNotEqualTo(String value) {
            addCriterion("ac_tran.to_account_no <>", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoGreaterThan(String value) {
            addCriterion("ac_tran.to_account_no >", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoGreaterThanOrEqualTo(String value) {
            addCriterion("ac_tran.to_account_no >=", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoLessThan(String value) {
            addCriterion("ac_tran.to_account_no <", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoLessThanOrEqualTo(String value) {
            addCriterion("ac_tran.to_account_no <=", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoLike(String value) {
            addCriterion("ac_tran.to_account_no like", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoNotLike(String value) {
            addCriterion("ac_tran.to_account_no not like", value, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoIn(List<String> values) {
            addCriterion("ac_tran.to_account_no in", values, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoNotIn(List<String> values) {
            addCriterion("ac_tran.to_account_no not in", values, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoBetween(String value1, String value2) {
            addCriterion("ac_tran.to_account_no between", value1, value2, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andToAccountNoNotBetween(String value1, String value2) {
            addCriterion("ac_tran.to_account_no not between", value1, value2, "toAccountNo");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("ac_tran.amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("ac_tran.amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("ac_tran.amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("ac_tran.amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("ac_tran.amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ac_tran.amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("ac_tran.amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ac_tran.amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("ac_tran.amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("ac_tran.amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ac_tran.amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ac_tran.amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("ac_tran.remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("ac_tran.remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("ac_tran.remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("ac_tran.remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("ac_tran.remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("ac_tran.remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("ac_tran.remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("ac_tran.remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("ac_tran.remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("ac_tran.remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("ac_tran.remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("ac_tran.remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("ac_tran.remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("ac_tran.remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andTransferDateIsNull() {
            addCriterion("ac_tran.transfer_date is null");
            return (Criteria) this;
        }

        public Criteria andTransferDateIsNotNull() {
            addCriterion("ac_tran.transfer_date is not null");
            return (Criteria) this;
        }

        public Criteria andTransferDateEqualTo(Date value) {
            addCriterionForJDBCDate("ac_tran.transfer_date =", value, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("ac_tran.transfer_date <>", value, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateGreaterThan(Date value) {
            addCriterionForJDBCDate("ac_tran.transfer_date >", value, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("ac_tran.transfer_date >=", value, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateLessThan(Date value) {
            addCriterionForJDBCDate("ac_tran.transfer_date <", value, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("ac_tran.transfer_date <=", value, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateIn(List<Date> values) {
            addCriterionForJDBCDate("ac_tran.transfer_date in", values, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("ac_tran.transfer_date not in", values, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("ac_tran.transfer_date between", value1, value2, "transferDate");
            return (Criteria) this;
        }

        public Criteria andTransferDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("ac_tran.transfer_date not between", value1, value2, "transferDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}